package main

import (
	"fmt"
	"go_code/project1/design_pattern/factory/model"
)

func main() {
	// stu := model.student{"jack", 12}
	// fmt.Println(stu)  //cannot refer to unexported name model.student

	stu := model.GetStudent("jack", 12)
	fmt.Println(*stu) // {jack 12}

	// fmt.Println(stu.age) // stu.age undefined (cannot refer to unexported field or method age)
	// fmt.Println(stu.GetAge()) // 12

	model.Test()

}
